<?php
/**
 * Created by PhpStorm.
 * User: mingzhongshui
 * Date: 2020/3/31
 * Time: 21:09
 */

namespace App\Repositories\Push;

use App\Repositories\Repository;

/**
 * Class PushLogRepository
 * @package App\Repositories\Push
 */
class PushLogRepository extends Repository
{

    /**
     * @return string
     */
    public function model()
    {
        return \App\Models\Push\PushLogModel::class;
    }

    /**
     * @param $pushId
     * @return mixed
     */
    public function getCountByPushId($pushId)
    {
        return $this->model->where('push_id', $pushId)->count();
    }

}
